package com.hdoit.ares.logical.share.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperDao;
import com.hdoit.ares.logical.share.dao.IShareStudyDao;
import com.hdoit.ares.logical.share.mapper.ShareStudyMapper;
import com.hdoit.ares.logical.share.model.ShareStudy;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年04月02日 08:38:30
 * @comment
 */
@Component
public class ShareStudyDaoImpl extends SuperDao<ShareStudy> implements IShareStudyDao{

	private ShareStudyMapper shareStudyMapper;
	
	public ShareStudyMapper getShareStudyMapper() {
		return shareStudyMapper;
	}
	@Resource
	public void setShareStudyMapper(ShareStudyMapper shareStudyMapper) {
		this.shareStudyMapper = shareStudyMapper;
	}

	@Override
	public int queryCountVideos(String customerId, String studyType) {
		return shareStudyMapper.queryCountVideos(customerId, studyType);
	}

}